#include <cstdio>

#include "application.h"
#include "mycanvas.h"

int main(int argv, char *args[])
{
    Application app(argv, args);
    
    QWindow *window = app.getWindow();

    Scene *scene = new Scene();

    MyCanvas *myCanvas = new MyCanvas(scene); 
    myCanvas->setViewport(0, 0, 800, 600);
    myCanvas->setWindow(-5.0, 5.0, -5.0, 5.0);

    window->setCanvas(myCanvas);
    window->setTitle("Camera control");
    window->resizeWindow(800,600);

    app.run();
    return 1;
}
